$summary-text: 14px;

.controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hint {
  font-size: 12px;
}

.inline {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  > * {
    flex-grow: 1;
  }
}

.properties {
  @media screen and (max-width: 900px) {
    display: none;
  }
  overflow: auto;
  width: 230px;
  flex-grow: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  ul {
    padding-inline-start: 20px;
  }
  summary {
    line-height: $summary-text;
    padding: 12px 16px;
    user-select: none;
    &:hover {
      background-color: var(--hover-bg);
    }
    h2 {
      display: inline;
    }
  }
  h2 {
    line-height: $summary-text;
    font-size: $summary-text;
  }
  section {
    padding: 4px 16px 12px;
    flex-direction: column;
    gap: 8px;
    display: flex;
  }
  section.color-picker-section {
    align-items: center;
    flex-direction: row;
    gap: 0;
    button {
      border-start-start-radius: 0;
      border-end-start-radius: 0;
    }
    label {
      display: flex;
      flex-grow: 1;
      align-items: center;
      justify-content: space-between;
      input {
        border-start-end-radius: 0;
        border-end-end-radius: 0;
      }
    }
  }
  > * {
    border-bottom: 1px solid gray;
  }
  > *:not(details) {
    padding: 12px 16px;
  }
}
